<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../layui/css/layui.css"/>
</head>
<body>
<div class="layui-form">
    <div class="layui-form-item">
        <label class="layui-form-label">单选框</label>
        <div class="layui-input-block">
            <input type="radio" name="type2" value="" title="test1">
            <input type="radio" name="type2" value="" title="test2">
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-form-label" style="width: 120px;">车型：</div>
        <div class="layui-input-block" id="chexing">
            <div class="layui-col-md1" style="width: 110px;">
                <input type="radio" name="type" title="不限"  lay-filter="Type_all">
            </div>
            <div class="layui-col-md1" style="width: 110px;">
                <input type="radio" name="type" title="G-高铁" lay-filter="Type_G">
            </div>
            <div class="layui-col-md1" style="width: 110px;">
                <input type="radio" name="type" title="C-城际" lay-filter="Type_C">
            </div>
            <div class="layui-col-md1" style="width: 110px;">
                <input type="radio" name="type" title="D-动车" lay-filter="Type_D">
            </div>
            <div class="layui-col-md1" style="width: 110px;">
                <input type="radio" name="type" title="Z-直达" lay-filter="Type_Z">
            </div>
            <div class="layui-col-md1" style="width: 110px;">
                <input type="radio" name="type" title="T-特快" lay-filter="Type_T">
            </div>
            <div class="layui-col-md1" style="width: 110px;">
                <input type="radio" name="type" title="K-快速" lay-filter="Type_K">
            </div>
            <div class="layui-col-md1" style="width: 110px;">
                <input type="radio" name="type" title="普通车型" lay-filter="Type_N">
            </div>
        </div>
    </div>

</div>

<script src="../layui/layui.js"></script>
<script>
    //一般直接写在一个js文件中
    layui.use(['layer', 'jquery', 'form'], function () {
        var layer = layui.layer
            , form = layui.form
            , $ = layui.jquery;

        // 在chrome中打断点调试
         $("input[name='type']:eq(0)").attr("checked","checked");
        form.render();

    });
</script>
</body>
</html>